<!DOCTYPE >
<html   lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8" content="">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>模板界面</title>
    <meta content="" name="descriptison">
    <meta content="" name="keywords">

    <!-- Favicons -->
    <link th:href="@{/assets/img/favicon.png}" rel="icon">
    <link th:href="@{/assets/img/apple-touch-icon.png}" rel="apple-touch-icon">

    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">

    <!-- Vendor CSS Files -->
    <link th:href="@{/assets/vendor/bootstrap/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/assets/vendor/icofont/icofont.min.css}" rel="stylesheet">
    <link th:href="@{/assets/vendor/boxicons/css/boxicons.min.css}" rel="stylesheet">
    <link th:href="@{/assets/vendor/animate.css/animate.min.css}" rel="stylesheet">
    <link th:href="@{/assets/vendor/venobox/venobox.css}" rel="stylesheet">
    <link th:href="@{/assets/vendor/aos/aos.css}" rel="stylesheet">
    <link th:href="@{/css/index.css}" rel="stylesheet" >
    <link th:href="@{/css/dialog.css}" rel="stylesheet" >

    <!-- Template Main CSS File -->
    <link th:href="@{/assets/css/style.css}" rel="stylesheet">
    <script th:src="@{/js/main.js}"></script>

</head>

<body>

<!-- ======= Header ======= -->
<header id="header">
    <div class="container">

        <div class="logo float-left">
            <h1 class="text-light"><a href=""><span th:text="${merchant.merchantName}"></span></a></h1>
        </div>

        <nav class="nav-menu float-right d-none d-lg-block">
            <ul>
                <li class="active"><a th:href="@{/index}">主页</a></li>
                <li><a th:href="@{/merchant/indetList(merchantId=${merchant.id})}">我的订单</a></li>
                <li><a th:href="@{/merchant/menuDetail(shopID=${merchant.id})}">管理菜品</a></li>
                <li><a th:href="@{/merchant/merchantDetail(shopID=${merchant.id})}">店铺信息</a></li>
            </ul>
        </nav><!-- .nav-menu -->

    </div>
</header><!-- End Header -->

<!-- ======= Our Team Section ======= -->
<section id="team" class="team">
    <div class="container">

        <div class="section-title">
            <h2>商家首页</h2>
            <p>基于springboot、thymeleaf、mybatis的在线点餐</p>
        </div>


        <!-- ======= Counts Section ======= -->
        <section class="counts section-bg">
            <div class="container">

                <div class="row">

                    <div class="col-lg-3 col-md-6 text-center" data-aos="fade-up">
                        <a th:href="@{/merchant/indetList(merchantId=${merchant.id})}">
                            <div class="count-box">
                                <i class="icofont-simple-smile" style="color: #20b38e;"></i>
                                <p>订单详情</p>
                            </div>
                        </a>
                    </div>



                    <div class="col-lg-3 col-md-6 text-center" data-aos="fade-up" data-aos-delay="400">
                        <a th:href="@{/merchant/menuDetail(shopID=${merchant.id})}">
                            <div class="count-box">
                                <i class="icofont-live-support" style="color: #46d1ff;"></i>
                                <p>管理菜品</p>
                            </div>
                        </a>
                    </div>

                    <div class="col-lg-3 col-md-6 text-center" data-aos="fade-up" data-aos-delay="600">
                        <a th:href="@{/merchant/merchantDetail(shopID=${merchant.id})}">
                            <div class="count-box">
                                <i class="icofont-users-alt-5" style="color: #ffb459;"></i>
                                <p>店铺信息</p>
                            </div>
                        </a>
                    </div>

                    <div class="col-lg-3 col-md-6 text-center" data-aos="fade-up" data-aos-delay="200">
                        <!--                        <a th:href="@{/merchantAddMenu}">-->
                        <div class="count-box">
                            <i class="icofont-document-folder" style="color: #c042ff;"></i>
                            <!--                                <p>添加菜品</p>-->
                            <div class="app-container">
                                <button class="open-dialog-button" style="background:transparent ;  height: 20px; border: none; color: #428cc8;font-size: smaller" >添加菜品</button>
                                <div class="dialog" style="display:none">
                                    <div class="dialog-main" style="z-index: initial; position: absolute; top: -200px;right: 350px ">
                                        <div class="dialog-head">
                                            <button class="dialog-close-button icon-botton" style="background-color: #2a3f54">x</button>
                                            <center>
                                            <span style="font-size:larger">添加菜品</span><br>
                                            <br>

                                                <form th:action="@{/merchant/addMenu}"  method="post" enctype="multipart/form-data">
                                                    <label>名称：</label> <input type="text" name="menus" placeholder="请输入菜品名称"><br><br>
                                                    <label>单价：</label><input type="text" name="price" placeholder="请输入菜品单价"><br><br>
                                                    <input type="file" name="img" /><br><br>
                                                    <!--/*@thymesVar id="shopName" type="com.example.controller.MerchantController"*/-->
                                                    <input type="hidden" name="shopName" th:value="${merchant.merchantName}" >
                                                    <input type="hidden" name="shopID" th:value="${merchant.id}" >
                                                    <input type="hidden" name="shopPhone" th:value="${merchant.phone}">
                                                    <input type="submit" value="确认" class="open-dialog-button" style="background-color: #2a3f54">
                                                </form>
                                            </center>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--                        </a>-->
                    </div>

                </div>

            </div>
        </section><!-- End Counts Section -->


    </div>
</section><!-- End Our Team Section -->
<br /><br /><br /><br /><br /><br />

<!-- ======= Footer ======= -->
<footer id="footer">


    <div class="container">
        <div class="copyright">
            &copy; Copyright <strong><span>Mamba</span></strong>. All Rights Reserved
        </div>
        <div class="credits">

            Designed by <a href="https://bootstrapmade.com/">BootstrapMade</a>
        </div>
    </div>
</footer><!-- End Footer -->

<a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>

<!-- Vendor JS Files -->
<script th:src="@{/assets/vendor/jquery/jquery.min.js}"></script>
<script th:src="@{/assets/vendor/bootstrap/js/bootstrap.bundle.min.js}"></script>
<script th:src="@{/assets/vendor/jquery.easing/jquery.easing.min.js}"></script>
<script th:src="@{/assets/vendor/php-email-form/validate.js}"></script>
<script th:src="@{/assets/vendor/jquery-sticky/jquery.sticky.js}"></script>
<script th:src="@{/assets/vendor/venobox/venobox.min.js}"></script>
<script th:src="@{/assets/vendor/waypoints/jquery.waypoints.min.js}"></script>
<script th:src="@{/assets/vendor/counterup/counterup.min.js}"></script>
<script th:src="@{/assets/vendor/isotope-layout/isotope.pkgd.min.js}"></script>
<script th:src="@{/assets/vendor/aos/aos.js}"></script>

<!-- Template Main JS File -->
<script th:src="@{/assets/js/main.js}"></script>

<script th:src="@{/js/main.js}"></script>
</body>

</html>

